package com.secxiot.provider.task.dao;

import com.secxiot.provider.task.entity.TaskPatientData;
import com.secxiot.provider.task.entity.TaskPatientDataExample;
import com.secxiot.provider.task.vo.TaskPatientDataVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskPatientDataDao {
    int countByExample(TaskPatientDataExample example);

    int deleteByExample(TaskPatientDataExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TaskPatientData record);

    int insertSelective(TaskPatientData record);

    List<TaskPatientData> selectByExample(TaskPatientDataExample example);

    TaskPatientData selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TaskPatientData record, @Param("example") TaskPatientDataExample example);

    int updateByExample(@Param("record") TaskPatientData record, @Param("example") TaskPatientDataExample example);

    int updateByPrimaryKeySelective(TaskPatientData record);

    int updateByPrimaryKey(TaskPatientData record);

    List<TaskPatientDataVo> selectByExectionId(@Param("exectionId") Long exectionId);

    List<TaskPatientDataVo> getListByTaskId(Long taskId);

    /**
     * 获取交接数据
     * @param transferId 交接任务ID
     * @return
     */
    List<TaskPatientDataVo> getTransferById(Long transferId);
}